import {combineReducers} from "redux";

function loggedReducer(state = false,action){
    switch(action.type) {
        case 'OK':

            return true;
        default:
            return state;
    }
}

function AddArticleReducer(state = false,action) {

    switch(action.type) {

        case 'ISADDARTICLE':
            console.log('---reducer___');
            return true;
        default:
            return state;
    }
}

export default combineReducers({
    loggedReducer,
    AddArticleReducer
})